package com.ruoyi.driver.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.driver.mapper.DriverNoticeMapper;
import com.ruoyi.driver.domain.DriverNotice;
import com.ruoyi.driver.service.IDriverNoticeService;

/**
 * 消息通知Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class DriverNoticeServiceImpl implements IDriverNoticeService 
{
    @Autowired
    private DriverNoticeMapper driverNoticeMapper;

    /**
     * 查询消息通知
     * 
     * @param noticeId 消息通知主键
     * @return 消息通知
     */
    @Override
    public DriverNotice selectDriverNoticeByNoticeId(Integer noticeId)
    {
        return driverNoticeMapper.selectDriverNoticeByNoticeId(noticeId);
    }

    /**
     * 查询消息通知列表
     * 
     * @param driverNotice 消息通知
     * @return 消息通知
     */
    @Override
    public List<DriverNotice> selectDriverNoticeList(DriverNotice driverNotice)
    {
        return driverNoticeMapper.selectDriverNoticeList(driverNotice);
    }

    /**
     * 新增消息通知
     * 
     * @param driverNotice 消息通知
     * @return 结果
     */
    @Override
    public int insertDriverNotice(DriverNotice driverNotice)
    {
        return driverNoticeMapper.insertDriverNotice(driverNotice);
    }

    /**
     * 修改消息通知
     * 
     * @param driverNotice 消息通知
     * @return 结果
     */
    @Override
    public int updateDriverNotice(DriverNotice driverNotice)
    {
        return driverNoticeMapper.updateDriverNotice(driverNotice);
    }

    /**
     * 批量删除消息通知
     * 
     * @param noticeIds 需要删除的消息通知主键
     * @return 结果
     */
    @Override
    public int deleteDriverNoticeByNoticeIds(Integer[] noticeIds)
    {
        return driverNoticeMapper.deleteDriverNoticeByNoticeIds(noticeIds);
    }

    /**
     * 删除消息通知信息
     * 
     * @param noticeId 消息通知主键
     * @return 结果
     */
    @Override
    public int deleteDriverNoticeByNoticeId(Integer noticeId)
    {
        return driverNoticeMapper.deleteDriverNoticeByNoticeId(noticeId);
    }
}
